package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天记录对象 ds_xx
 *
 * @author tyro
 * @date 2025-03-13
 */
public class DsXx extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息id */
    private String xxId;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String xxContent;

    /** 聊天id */
    @Excel(name = "聊天id")
    private String ltId;

    /** 用户名 */
    private String userName;

    /** 归属方 */
    @Excel(name = "归属方")
    private String role;

    /** 班级id */
    private Long classId;

    /** 学院ID */
    private Integer collegeId;

    /** 开始时间 */
    private String beginTime;

    /** 结束时间 */
    private String endTime;

    /** 用户数量 */
    private Integer userCount;


    // getter和setter方法
    public Integer getCollegeId() {
        return collegeId;
    }

    public void setCollegeId(Integer collegeId) {
        this.collegeId = collegeId;
    }

    public String getLtId() {
        return ltId;
    }

    public void setLtId(String ltId) {
        this.ltId = ltId;
    }

    public String getXxId() {
        return xxId;
    }

    public void setXxId(String xxId) {
        this.xxId = xxId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setXxContent(String xxContent)
    {
        this.xxContent = xxContent;
    }

    public String getXxContent()
    {
        return xxContent;
    }

    public void setRole(String role)
    {
        this.role = role;
    }

    public String getRole()
    {
        return role;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("xxId", getXxId())
            .append("collegeId", getCollegeId())
            .append("xxContent", getXxContent())
            .append("ltId", getLtId())
            .append("role", getRole())
            .append("classId", getClassId())
            .append("userCount", getUserCount())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
